
#pragma once

struct Flash;

int NandEccCalculate(struct NandFlash *pNandFlash, const BYTE *dat,
			BYTE *ecc_code);

int NandEccCorrect(struct NandFlash *pNandFlash, BYTE *dat,
			BYTE *read_ecc, BYTE *calc_ecc);
